package com.zf.yichat.service;

import com.zf.yichat.dto.StQuestionsDto;
import com.zf.yichat.dto.UserAnswerDto;
import com.zf.yichat.model.StAnswers;
import com.zf.yichat.model.StLowCarbonApplyCertificate;
import com.zf.yichat.model.StQuestions;
import com.zf.yichat.model.StUserAnswers;
import com.zf.yichat.utils.response.FsResponse;

import java.util.List;

public interface UserAnswerService {


    /**
     * 查询答题列表
     * @return
     */
    StQuestionsDto queryQuestionList(Long userId);

    /**
     * 用户答题接口
     * @param userId
     * @param answerId
     * @return
     */
    FsResponse userAnswerQuestion(Long userId, Integer answerId);

    /**
     * 用户答题列表
     * @return
     */
    FsResponse questionList();

    void addStQuestions(StQuestions questions);

    void editStQuestions(StQuestions questions);

    void deleteStQuestions(Integer id);

    FsResponse answerList(Integer questionId);

    void addStAnswers(StAnswers answers);

    void editStAnswers(StAnswers answers);

    void deleteStAnswers(Integer id);

    /**
     * 查询用户答题正确数
     * @param userId
     * @return
     */
    UserAnswerDto queryUserAnswerCount(Long userId);

    /**
     * 查询低碳知识列表
     * @return
     */
    FsResponse queryStLowCarbonKnowledgeList();

    /**
     * 用户申请实践证书
     * @param certificate
     * @return
     */
    FsResponse userApplyCertificate(StLowCarbonApplyCertificate certificate);
}
